package com.geuso.xingdutch.sentances;

import android.os.Bundle;
import android.view.View;
import android.widget.ExpandableListView;
import android.widget.ExpandableListView.OnChildClickListener;

import com.geuso.xingdutch.R;
import com.geuso.xingdutch.activity.DefaultActivity;

public class SentancesActivity extends DefaultActivity {
	

    private ExpandableListView expListView;
    
    
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sentance_list);
        
        
        expListView = (ExpandableListView) findViewById(R.id.sentances_list);
        expListView.setAdapter(new SentancesListAdapter(this, SentancesData.sentances));
        expListView.setIndicatorBounds(15 , 30);
        
        expListView.setOnChildClickListener(new OnChildClickListener() {
			
			@Override
			public boolean onChildClick(ExpandableListView parent, View v,
					int groupPosition, int childPosition, long id) {
				return parent.collapseGroup(groupPosition);
			}
		});

    }


	
}
